import axios from "@/http/request.js";

//老板接口
const bossApi = {
  login(data) {
    return axios({
      method: "post",
      url: "/boss/login",
      data,
    });
  },
  //查询全部游戏类型
  getAllGameType(data) {
    return axios({
      method: "post",
      url: "/home/getGameType",
      data,
    });
  },
  //查询全部商品
  getGoodsList(data) {
    return axios({
      method: "post",
      url: "/home/getOrderList",
      data,
    });
  },
  //查询全部地址
  getAllAddress(data) {
    return axios({
      method: "post",
      url: "/boss/getAddress",
      data,
    });
  },

  uploadImg(data) {
    return axios({
      method: "post",
      url: "/boss/uploadImg",
      data,
    });
  },

  //注册
  register(data) {
    return axios({
      method: "post",
      url: "/boss/register",
      data,
    });
  },
  //登录
  login(data) {
    return axios({
      method: "post",
      url: "/boss/login",
      data,
    });
  },
  //退出登录
  logout(data) {
    return axios({
      method: "post",
      url: "/boss/logout",
      data,
    });
  },
  //修改个人信息
  updateUser(data) {
    return axios({
      method: "post",
      url: "/boss/updateUser",
      data,
    });
  },
  //修改密码
  modifyPassword(data) {
    return axios({
      method: "post",
      url: "/boss/modifyPassword",
      data,
    });
  },
  //获取所有陪玩
  getAllPlaymates(data) {
    return axios({
      method: "post",
      url: "/boss/getAllPlaymates",
      data,
    });
  },
  //根据用户id查询是否在陪玩表有数据
  getUserIdentity(data) {
    return axios({
      method: "post",
      url: "/boss/getUserIdentity",
      data,
    });
  },
  //根据商品id 查询商品详情
  getGoodsInfoById(data) {
    return axios({
      method: "post",
      url: "/home/getOrderInfoById",
      data,
    });
  },
  registerAsPlaymate(data){
    return axios({
      method: "post",
      url: "/boss/registerPlaymate",
      data,
    });
  },
  getBossWater(data){
    return axios({
      method: "post",
      url: "/boss/getUserMoney",
      data,
    });
  },
  // 查询所有消费类型
  getAllSpentType(data){
    return axios({
      method: "post",
      url: "/boss/getUserConsumeType",
      data,
    });
  },
  // 根据老板查询相关订单
  getOrderByStatus(data){
    return axios({
      method: "post",
      url: "/boss/getUserOrder",
      data,
    });
  },
  //根据老板id 查询相关背包记录
  getUserBags(data){
    return axios({
      method: "post",
      url: "/boss/getUserBag",
      data,
    });
  },
  //根据租户id 查询礼物类型
  getGiftType(data){
    return axios({
      method: "post",
      url: "/boss/getUserGift",
      data,
    });
  },
};
export default bossApi;
